﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AnalyseServer
{
    public class PushData<T>
    {
        int _size;
        T[] _data = null;

        public PushData(int size)
        {
            _data = new T[size];
            _size = size;
        }

        public void Add(T val)
        {
            Array.Copy(_data, 0, _data, 1, _size - 1);
            _data[0] = val;
        }

        public T[] Data
        {
            get
            {
                return _data;
            }
        }

    }
}
